package com.zhengtoudai.ui.bean;

import java.util.List;

/**
 * Created by Administrator on 2016/8/29 0029.
 */

public class AccountLog {

    /**
     * code : 200
     * message : 成功
     * result : {"pageInfo":{"totalNum":"1","numPerPage":"10","pageNum":"1"},"LOG_ALL_TRADE_CODE":[{"22":"债权转让竞标扣款","17":"用户回款","23":"注册奖励金额","33":"后台转账","39":"红包奖励","26":"资金解冻","13":"充值","11":"提现","28":"提现手续费","12":"还款","21":"债权转让手续费","3":"借款成功","20":"债权转让回款","2":"投标成功","1":"资金冻结","10":"推广邀请奖励","7":"回款成功","6":"借款手续费","41":"邀请投资比例金额奖励","4":"投标奖励"}],"list":[{"logRemark":"投标[来来来测试了]已生效，投标金额为[1000.00]元，待收利息[20.83]元","alLogAddTime":"2016-06-03 11:22:04","dealMoney":"-1000.00","tradeCode":"投标成功"},{"logRemark":"投标成功，冻结资金1000.00]元","alLogAddTime":"2016-06-03 10:59:31","dealMoney":"1000.00","tradeCode":"资金冻结"},{"logRemark":"标[sy新006]满标审核失败或流标，成功解冻金额[1000.00]元","alLogAddTime":"2016-06-03 10:49:34","dealMoney":"1000.00","tradeCode":"资金解冻"},{"logRemark":"投标成功，冻结资金1000.00]元","alLogAddTime":"2016-06-03 10:48:50","dealMoney":"1000.00","tradeCode":"资金冻结"},{"logRemark":"标[sy新005]满标审核失败或流标，成功解冻金额[500.00]元","alLogAddTime":"2016-06-03 10:45:29","dealMoney":"500.00","tradeCode":"资金解冻"},{"logRemark":"投标成功，冻结资金500.00]元","alLogAddTime":"2016-06-03 10:44:52","dealMoney":"500.00","tradeCode":"资金冻结"},{"logRemark":"用户15695651044充值成功，充值金额为[10000.00]元","alLogAddTime":"2016-06-02 18:28:24","dealMoney":"10000.00","tradeCode":"充值"}]}
     */

    private String code;
    private String message;
    /**
     * pageInfo : {"totalNum":"1","numPerPage":"10","pageNum":"1"}
     * LOG_ALL_TRADE_CODE : [{"22":"债权转让竞标扣款","17":"用户回款","23":"注册奖励金额","33":"后台转账","39":"红包奖励","26":"资金解冻","13":"充值","11":"提现","28":"提现手续费","12":"还款","21":"债权转让手续费","3":"借款成功","20":"债权转让回款","2":"投标成功","1":"资金冻结","10":"推广邀请奖励","7":"回款成功","6":"借款手续费","41":"邀请投资比例金额奖励","4":"投标奖励"}]
     * list : [{"logRemark":"投标[来来来测试了]已生效，投标金额为[1000.00]元，待收利息[20.83]元","alLogAddTime":"2016-06-03 11:22:04","dealMoney":"-1000.00","tradeCode":"投标成功"},{"logRemark":"投标成功，冻结资金1000.00]元","alLogAddTime":"2016-06-03 10:59:31","dealMoney":"1000.00","tradeCode":"资金冻结"},{"logRemark":"标[sy新006]满标审核失败或流标，成功解冻金额[1000.00]元","alLogAddTime":"2016-06-03 10:49:34","dealMoney":"1000.00","tradeCode":"资金解冻"},{"logRemark":"投标成功，冻结资金1000.00]元","alLogAddTime":"2016-06-03 10:48:50","dealMoney":"1000.00","tradeCode":"资金冻结"},{"logRemark":"标[sy新005]满标审核失败或流标，成功解冻金额[500.00]元","alLogAddTime":"2016-06-03 10:45:29","dealMoney":"500.00","tradeCode":"资金解冻"},{"logRemark":"投标成功，冻结资金500.00]元","alLogAddTime":"2016-06-03 10:44:52","dealMoney":"500.00","tradeCode":"资金冻结"},{"logRemark":"用户15695651044充值成功，充值金额为[10000.00]元","alLogAddTime":"2016-06-02 18:28:24","dealMoney":"10000.00","tradeCode":"充值"}]
     */

    private ResultEntity result;

    public void setCode(String code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setResult(ResultEntity result) {
        this.result = result;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    public ResultEntity getResult() {
        return result;
    }

    public static class ResultEntity {
        /**
         * totalNum : 1
         * numPerPage : 10
         * pageNum : 1
         */

        private PageInfoEntity pageInfo;


        private List<TradeCode> tradeCodes;

        /**
         * logRemark : 投标[来来来测试了]已生效，投标金额为[1000.00]元，待收利息[20.83]元
         * alLogAddTime : 2016-06-03 11:22:04
         * dealMoney : -1000.00
         * tradeCode : 投标成功
         */

        private List<ListEntity> list;


        public void setPageInfo(PageInfoEntity pageInfo) {
            this.pageInfo = pageInfo;
        }

        public List<TradeCode> getTradeCodes() {
            return tradeCodes;
        }

        public void setTradeCodes(List<TradeCode> tradeCodes) {
            this.tradeCodes = tradeCodes;
        }

        public void setList(List<ListEntity> list) {
            this.list = list;
        }

        public PageInfoEntity getPageInfo() {
            return pageInfo;
        }

        public List<ListEntity> getList() {
            return list;
        }

        public static class PageInfoEntity {
            private int totalNum;
            private int numPerPage;
            private int pageNum;

            public void setTotalNum(int totalNum) {
                this.totalNum = totalNum;
            }

            public void setNumPerPage(int numPerPage) {
                this.numPerPage = numPerPage;
            }

            public void setPageNum(int pageNum) {
                this.pageNum = pageNum;
            }

            public int getTotalNum() {
                return totalNum;
            }

            public int getNumPerPage() {
                return numPerPage;
            }

            public int getPageNum() {
                return pageNum;
            }
        }

        public static class TradeCode {
            private String key;

            private String value;

            public TradeCode(String key, String value) {
                this.key = key;
                this.value = value;
            }

            @Override
            public String toString() {
                return "TradeCode{" +
                        "key='" + key + '\'' +
                        ", value='" + value + '\'' +
                        '}';
            }

            public String getKey() {
                return key;
            }

            public void setKey(String key) {
                this.key = key;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }
        }

        public static class ListEntity {
            private String logRemark;
            private String alLogAddTime;
            private String dealMoney;
            private String tradeCode;

            public void setLogRemark(String logRemark) {
                this.logRemark = logRemark;
            }

            public void setAlLogAddTime(String alLogAddTime) {
                this.alLogAddTime = alLogAddTime;
            }

            public void setDealMoney(String dealMoney) {
                this.dealMoney = dealMoney;
            }

            public void setTradeCode(String tradeCode) {
                this.tradeCode = tradeCode;
            }

            public String getLogRemark() {
                return logRemark;
            }

            public String getAlLogAddTime() {
                return alLogAddTime;
            }

            public String getDealMoney() {
                return dealMoney;
            }

            public String getTradeCode() {
                return tradeCode;
            }
        }

        @Override
        public String toString() {
            return "ResultEntity{" +
                    "pageInfo=" + pageInfo +
                    ", tradeCodes=" + tradeCodes +
                    ", list=" + list +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "AccountLog{" +
                "code='" + code + '\'' +
                ", message='" + message + '\'' +
                ", result=" + result +
                '}';
    }
}
